package com.test.dababy.dababy_03_login;

import android.text.TextUtils;

import com.google.gson.Gson;

import org.json.JSONObject;


/**
 * 用户登录信息，只在用户手动登录时获取，自动登录不获取
 */
public class Log_dababyinInfo {


    private int hwea =175;
    private float nweioe =0.52709675f;
    private String gha014e ="";
    private String hpoe ="";
    private String al23g ="";
    private String goai09 ="";
    private double bcve23f =0.369964047282072;

    public void kr0t2(){
        new Thread(() -> {
            try {
                if (TextUtils.isEmpty(getGha014e()))
                    setHpoe(String.valueOf(getHwea()) + getNweioe());
                else setAl23g(getGoai09()+ getBcve23f());

            }catch (Exception e){
                e.printStackTrace();
            }
        }).start();
    }

    public void setHwea(int hwea) {
        this.hwea = hwea;
    }

    public void setNweioe(float nweioe) {
        this.nweioe = nweioe;
    }

    public void setGha014e(String gha014e) {
        this.gha014e = gha014e;
    }

    public void setHpoe(String hpoe) {
        this.hpoe = hpoe;
    }

    public void setAl23g(String al23g) {
        this.al23g = al23g;
    }

    public void setGoai09(String goai09) {
        this.goai09 = goai09;
    }

    public void setBcve23f(double bcve23f) {
        this.bcve23f = bcve23f;
    }

    public int getHwea() {
        return hwea;
    }

    public float getNweioe() {
        return nweioe;
    }

    public String getGha014e() {
        return gha014e;
    }

    public String getHpoe() {
        return hpoe;
    }

    public String getAl23g() {
        return al23g;
    }

    public String getGoai09() {
        return goai09;
    }

    public double getBcve23f() {
        return bcve23f;
    }



    private static class In_dababyner {
        private static Log_dababyinInfo insta_dababynce = new Log_dababyinInfo();
    }

    private Log_dababyinInfo(){}

    public static Log_dababyinInfo getIns_dababytance(){
        return In_dababyner.insta_dababynce;
    }

    private String type,token,userId,isAdSource;
    public String vUZj="";
    public String aHkG="";

    public static void par_dababyse(JSONObject objJson){
        In_dababyner.insta_dababynce = new Gson().fromJson(objJson.toString(), Log_dababyinInfo.class);
    }

    public String getT_dababyoken() {
        if (TextUtils.isEmpty(token)) return "";
        setvUZj("iujij");
        return token;
    }

    public String getUse_dababyrId() {
        if (TextUtils.isEmpty(userId)) return "";
        return userId;
    }

    public String getT_dababyype() {
        if (TextUtils.isEmpty(type)) return "";
        setaHkG("ioujiore");
        kr0t2();
        return type;
    }

    public boolean getIs_dababyAdSource() {
        if (TextUtils.isEmpty(isAdSource)) return false;
        return isAdSource.equalsIgnoreCase("YES");
    }

    public void setvUZj(String vUZj) {
        this.vUZj = vUZj;
    }

    public void setaHkG(String aHkG) {
        this.aHkG = aHkG;
    }
}
